#include "Base.h"
#include "DBPlayer.h"
#include "Log.h"

CDBPlayer *g_pDBPlayer = NULL;

CDBPlayer::CDBPlayer(void)
{
	g_pDBPlayer = this;
}

CDBPlayer::~CDBPlayer(void)
{
}

BOOL CDBPlayer::OnInitialUpdate(const char *szServerIP, int nPort, int nOrigin, int nServerId)
{
	if(!CServerPlayer::OnInitialUpdate(szServerIP, nPort, nOrigin, nServerId))
	{
		WriteLog("%s : %d CDBPlayer::OnInitialUpdate return FALSE", __FILE__, __LINE__);
		return FALSE;
	}
	return TRUE;
}

Msg* CDBPlayer::CreateMsg(DWORD dwMsgId, int nLen)
{
    switch(dwMsgId)
	{
	}
	return NULL;
}

BOOL CDBPlayer::OnMsg(Msg *pMsg)
{
    DWORD dwMsgId = pMsg->GetMsgId();
	switch(dwMsgId)
	{
	}
	return TRUE;
}
